<html xmlns="http://www.w3.org/1999/xhtml" 
    xmlns:h="http://java.sun.com/jsf/html" 
    xmlns:f="http://java.sun.com/jsf/core" 
    xmlns:p="http://primefaces.org/ui"> 
 
    <h:head> 
 
    </h:head> 
      
    <h:body> 
    	<h:form >
	       <div style="margin:auto; width:300px;">
	       	   <h1>Login</h1>
		       <table style="width:100%">
		       		<colgroup>
		       			<col style="width:100px" />
		       			<col style="width:200px" />
		       		</colgroup>
		       		<tr>
		       			<td>Benutzername</td>
		       			<td>
		       				<h:inputText maxlength="50" required="true" style="width:100%" value="#{loginBean.username}" />
						</td>
		       		</tr>
		       		<tr>
		       			<td>Passwort</td>
		       			<td>
			       			<h:inputSecret maxlength="50" required="true" style="width:100%" value="#{loginBean.password}" />
		       			</td>
		       		</tr>
		       		<tr>
		       			<td colspan="2">
		       				<h:commandButton value="Login" action="#{loginBean.login}" style="width:100%" />
		       			</td>
		       		</tr>
		       </table>
	       </div>
    	</h:form>
    </h:body> 
</html>